package com.zsr.example.util.constants;

/**
 * syslog请求常用key
 * @author zhousiren
 * @date 2021/12/23 10:35
 */
public class SysLogConstants {
    /**
     * 请求路径
     */
    public static final String REQUEST_URL ="requestURL";
    /**
     * 请求方法
     */
    public static final String METHOD ="method";
    /**
     * get请求参数key-value形式
     */
    public static final String QUERY_STRING ="queryString";
    /**
     * ip地址
     */
    public static final String REMOTE_ADDR ="remoteAddr";
    /**
     * ip地址
     */
    public static final String REQUEST_BODY ="requestBody";

    /**
     * 解析错误
     */
    public static final String PARSE_ERROR ="parseError";


    //日志等级
    public static final int LEVEL_DEBUG = 0;
    public static final int LEVEL_INFO = 1;
    public static final int LEVEL_WARN = 2;
    public static final int LEVEL_ERROR = 3;


    public static final String SAVE_OR_UPDATE = "新增或修改";
    public static final String SAVE = "新增";
    public static final String UPDATE = "修改";
    public static final String DELETE = "删除";
    public static final String UPLOAD = "上传";
    public static final String LOGIN = "登录";
    public static final String LOCK = "冻结";

}
